export default class Base_axios {
  constructor($axios, baseURL) {
    this.$axios = $axios;
    if(baseURL) {
      this.baseURL = baseURL
    }
  }

  base_get(url, config = {}) {
    return this.$axios.get(url, {
      baseURL: this.baseURL,
      ...config,
    })
  }

  base_post(url, data = {}, config = {}) {
    return this.$axios.post(url, data,{
        baseURL: this.baseURL,
        ...config,
      }

    )
  }
}
